SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 43862: Blank column names in a Microsoft Excel file might cause "Illegal variable name" errors

DetailsAboutRate It

When you import an Excel file with the XLSX engine, you might receive an error. For example, suppose you submit the following IMPORT procedure:

proc import datafile="c:\sastest\testdata.xlsx" out=sasdatab dbms=xlsx replace; run;

This procedure generates the following error:

ERROR: The variable name is illegal for file WORK.SASDATAB.DATA.
NOTE: The SAS System stopped processing this step because of errors.

The problem occurs when the Excel file contains blank column names. In this situation, the file fails to import and it is locked until the SAS® session ends.

To circumvent the problem, add a column name to the header row of the Excel file.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to PC FilesMicrosoft® Windows® for x649.39.39.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.39.39.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.39.39.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Standard Edition9.39.39.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 for x649.39.39.3 TS1M09.4 TS1M0
Microsoft Windows Server 20089.39.39.3 TS1M09.4 TS1M0
Microsoft Windows Server 2008 for x649.39.39.3 TS1M09.4 TS1M0
Microsoft Windows XP Professional9.39.39.3 TS1M09.4 TS1M0
Windows 7 Enterprise 32 bit9.39.3 TS1M0
Windows 7 Enterprise x649.39.3 TS1M0
Windows 7 Home Premium 32 bit9.39.3 TS1M0
Windows 7 Home Premium x649.39.3 TS1M0
Windows 7 Professional 32 bit9.39.3 TS1M0
Windows 7 Professional x649.39.3 TS1M0
Windows 7 Ultimate 32 bit9.39.3 TS1M0
Windows 7 Ultimate x649.39.3 TS1M0
Windows Vista9.39.39.3 TS1M09.4 TS1M0
Windows Vista for x649.39.39.3 TS1M09.4 TS1M0
64-bit Enabled AIX9.39.39.3 TS1M09.4 TS1M0
64-bit Enabled HP-UX9.39.39.3 TS1M09.4 TS1M0
64-bit Enabled Solaris9.39.39.3 TS1M09.4 TS1M0
HP-UX IPF9.39.39.3 TS1M09.4 TS1M0
Linux9.39.39.3 TS1M09.4 TS1M0
Linux for x649.39.39.3 TS1M09.4 TS1M0
Solaris for x649.39.39.3 TS1M09.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.